import Vue from 'vue'
import Router from 'vue-router'
import todoRoutes from './todoRoutes.js'
import loginRouters from './loginRouter.js'
import testRoutes from './testRoutes.js'

Vue.use(Router)

// export default new Router({
//   mode: 'history',
//   routes:TodoRoutes
// })

export default () => {
  return new Router({
    mode : 'history',
    routes : [...todoRoutes, ...loginRouters,...testRoutes],
    linkActiveClass:'link-active',
    linkExactActiveClass:'link-exact-active'
  })
}

